home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 243 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: solon.com!not-for-mail
  2. From: makholm@diku.dk (Henning Makholm)
  3. Newsgroups: comp.lang.c.moderated,comp.lang.c,comp.std.c
  4. Subject: Re: Perhaps it's time the C community *did* something about bad books.
  5. Followup-To: comp.lang.c.moderated,comp.lang.c
  6. Date: 30 Jan 1996 17:57:20 -0600
  7. Organization: Department of Computer Science, U of Copenhagen
  8. Sender: clc@solutions.solon.com
  9. Approved: clc@solutions.solon.com
  10. Message-ID: <4emb90$3ue@solutions.solon.com>
  11. References: <4e07lv$adu@solutions.solon.com> <4e5ooa$6b5@solutions.solon.com>
  12.     <4e9f08$9br@solutions.solon.com> <4e9gff$9n9@solutions.solon.com>
  13. NNTP-Posting-Host: solutions.solon.com
  14.  
  15. seebs@solutions.solon.com (Peter Seebach) writes:
  16.  
  17. >    Page 59
  18. >
  19. >        "This shorthand works for all the binary operators..."
  20. >
  21. >    [Meaning op=, ala +=, -=... -seebs]
  22. >    No, it doesn't.  It doesn't work for ".", "->", "&&", or "||".
  23.  
  24. .= would never be meaningful but the others would be nice, though...
  25.  
  26.   /* traversing a linked list: HYPOTHETICAL CODE */
  27.   for ( link = root ; link ; link ->= next )
  28.     process(link->data);
  29.  
  30. Cool! :-)
  31. (oh well, then at least 'clever'... others would prefer 'unreadable')
  32.  
  33. -- 
  34. Henning Makholm - math and CS student - University of Copenhagen
  35. makholm@diku.dk - http://www.diku.dk/students/makholm - fido 2:235/224.92
  36.